package com.qiaofang.housewarehouse.stub.facade;

import com.qiaofang.housewarehouse.stub.request.CityDistricRequest;
import com.qiaofang.housewarehouse.stub.request.CityRegionRequest;
import com.qiaofang.housewarehouse.stub.response.CityDistricResponse;
import com.qiaofang.housewarehouse.stub.response.CityRegionResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "housewarehouse",url="${feign.url.housewarehouse}")
@Api(tags = "CityQuery", value = "查询城市区域板块服务接口", description = "查询城市区域板块服务接口")
@RequestMapping(value = {"/CityQuery"})
public interface CityQueryFacade {

    @ApiOperation(value = "通过城市获取区域list", response = CityRegionResponse.class)
    @RequestMapping(value = "/listRegionByCity", method = RequestMethod.POST)
    CityRegionResponse listRegionByCity(CityRegionRequest cityRegionRequest);

    @ApiOperation(value = "查询区域下的板块list", response = CityDistricResponse.class)
    @RequestMapping(value = "/listDistricByRegion", method = RequestMethod.POST)
    CityDistricResponse listDistricByRegion(CityDistricRequest cityDistricRequest);
}
